set(LLVM_LINK_COMPONENTS 
  ${LLVM_TARGETS_TO_BUILD}
  BinaryFormat
  Object
  Support)

add_clang_tool(clang-offload-packager
  ClangOffloadPackager.cpp

  DEPENDS
  ${tablegen_deps}
  )

add_dependencies(clang clang-offload-packager)

clang_target_link_libraries(clang-offload-packager
  PRIVATE
  clangBasic
  )
